using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN KhoaBangDiemService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:16/01/2012 25:11:54</para>
	/// <para>Class Name: KhoaBangDiemService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class KhoaBangDiemService : IKhoaBangDiemService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: KhoaBangDiem_ID</para>
		/// <para>Output: KhoaBangDiemEntity</para>
		///</summary>
		public KhoaBangDiemEntity SelectOne(int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.SelectOne(KhoaBangDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KhoaBangDiemEntity</para>
		///</summary>
		public List<KhoaBangDiemEntity> SelectAll(){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of KhoaBangDiemEntity</para>
		///</summary>
		public List<KhoaBangDiemEntity> SelectAllFilter(string strFilter){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: Save</para>
		/// <para>Input: KhoaBangDiemEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(KhoaBangDiemEntity o){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: Save</para>
		/// <para>Input: KhoaBangDiemEntity</para>
		/// <para>Output: KhoaBangDiemEntity</para>
		///</summary>
		public KhoaBangDiemEntity SaveRet(KhoaBangDiemEntity o){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of KhoaBangDiemEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<KhoaBangDiemEntity> list){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of KhoaBangDiemEntity</para>
		/// <para>Output: List of KhoaBangDiemEntity</para>
		///</summary>
		public List<KhoaBangDiemEntity> SaveListRet(List<KhoaBangDiemEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: Update</para>
		/// <para>Input: KhoaBangDiemEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(KhoaBangDiemEntity o){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of KhoaBangDiemEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<KhoaBangDiemEntity> list){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: UpdateLoaiDiem_ID</para>
		/// <para>Input: NewLoaiDiem_ID,KhoaBangDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLoaiDiem_ID(int NewLoaiDiem_ID,int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.UpdateLoaiDiem_ID(NewLoaiDiem_ID,KhoaBangDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: UpdateMonHoc_ID</para>
		/// <para>Input: NewMonHoc_ID,KhoaBangDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMonHoc_ID(int NewMonHoc_ID,int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.UpdateMonHoc_ID(NewMonHoc_ID,KhoaBangDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: UpdateLanThi</para>
		/// <para>Input: NewLanThi,KhoaBangDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLanThi(int NewLanThi,int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.UpdateLanThi(NewLanThi,KhoaBangDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: UpdateUser_ID</para>
		/// <para>Input: NewUser_ID,KhoaBangDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateUser_ID(int NewUser_ID,int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.UpdateUser_ID(NewUser_ID,KhoaBangDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: UpdateKhoaDoiTuong_ID</para>
		/// <para>Input: NewKhoaDoiTuong_ID,KhoaBangDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateKhoaDoiTuong_ID(int NewKhoaDoiTuong_ID,int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.UpdateKhoaDoiTuong_ID(NewKhoaDoiTuong_ID,KhoaBangDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: UpdateLoaiKhoa</para>
		/// <para>Input: NewLoaiKhoa,KhoaBangDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLoaiKhoa(Byte NewLoaiKhoa,int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.UpdateLoaiKhoa(NewLoaiKhoa,KhoaBangDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: UpdateTrangThai</para>
		/// <para>Input: NewTrangThai,KhoaBangDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTrangThai(Byte NewTrangThai,int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.UpdateTrangThai(NewTrangThai,KhoaBangDiem_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: UpdateNgayKhoa</para>
		/// <para>Input: NewNgayKhoa,KhoaBangDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNgayKhoa(DateTime NewNgayKhoa,int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.UpdateNgayKhoa(NewNgayKhoa,KhoaBangDiem_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: Delete</para>
		/// <para>Input: KhoaBangDiemEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(KhoaBangDiemEntity o){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:16/01/2012 25:11:54</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: KhoaBangDiem_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int KhoaBangDiem_ID){
			KhoaBangDiemDAO dao = new KhoaBangDiemDAO();
			return dao.DeleteByID(KhoaBangDiem_ID);
		}
		#endregion

		#region Select,delete by KhoaBangDiem_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END KhoaBangDiemWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

